package org.jypj.dev.vo.layimVo;

import java.util.List;

/**
 * Created by yu_chen on 2017/8/14.
 */

public class ComBean {


    /**
     * code : 0
     * msg :
     * data : {"mine":{"username":"管理员","id":"100000","status":"online","sign":"我是管理员","avatar":"http://cdn.firstlinkapp.com/upload/2016_6/1465575923433_33812.jpg "},"friend":[{"groupname":"机械师","id":1,"online":2,"list":[{"username":"贤心","id":"100001","avatar":"http://tp1.sinaimg.cn/1571889140/180/40030060651/1 ","sign":"这些都是测试数据，实际使用请严格按照该格式返回"},{"username":"Z_子晴","id":"108101","avatar":"http://tva3.sinaimg.cn/crop.0.0.512.512.180/8693225ajw8f2rt20ptykj20e80e8weu.jpg ","sign":"微电商达人"},{"username":"Lemon_CC","id":"102101","avatar":"http://tp2.sinaimg.cn/1833062053/180/5643591594/0","sign":""},{"username":"马小云","id":"168168","avatar":"http://tp4.sinaimg.cn/2145291155/180/5601307179/1","sign":"让天下没有难写的代码","status":"offline"},{"username":"徐小峥","id":"666666","avatar":"http://tp2.sinaimg.cn/1783286485/180/5677568891/1","sign":"代码在囧途，也要写到底"}]}],"group":[{"groupname":"前端群","id":"101","avatar":"http://tp2.sinaimg.cn/2211874245/180/40050524279/0"},{"groupname":"Fly社区官方群","id":"102","avatar":"http://tp2.sinaimg.cn/5488749285/50/5719808192/1"}]}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * mine : {"username":"管理员","id":"100000","status":"online","sign":"我是管理员","avatar":"http://cdn.firstlinkapp.com/upload/2016_6/1465575923433_33812.jpg "}
         * friend : [{"groupname":"机械师","id":1,"online":2,"list":[{"username":"贤心","id":"100001","avatar":"http://tp1.sinaimg.cn/1571889140/180/40030060651/1 ","sign":"这些都是测试数据，实际使用请严格按照该格式返回"},{"username":"Z_子晴","id":"108101","avatar":"http://tva3.sinaimg.cn/crop.0.0.512.512.180/8693225ajw8f2rt20ptykj20e80e8weu.jpg ","sign":"微电商达人"},{"username":"Lemon_CC","id":"102101","avatar":"http://tp2.sinaimg.cn/1833062053/180/5643591594/0","sign":""},{"username":"马小云","id":"168168","avatar":"http://tp4.sinaimg.cn/2145291155/180/5601307179/1","sign":"让天下没有难写的代码","status":"offline"},{"username":"徐小峥","id":"666666","avatar":"http://tp2.sinaimg.cn/1783286485/180/5677568891/1","sign":"代码在囧途，也要写到底"}]}]
         * group : [{"groupname":"前端群","id":"101","avatar":"http://tp2.sinaimg.cn/2211874245/180/40050524279/0"},{"groupname":"Fly社区官方群","id":"102","avatar":"http://tp2.sinaimg.cn/5488749285/50/5719808192/1"}]
         */

        private MineBean mine;
        private List<FriendBean> friend;
        private List<GroupBean> group;

        public MineBean getMine() {
            return mine;
        }

        public void setMine(MineBean mine) {
            this.mine = mine;
        }

        public List<FriendBean> getFriend() {
            return friend;
        }

        public void setFriend(List<FriendBean> friend) {
            this.friend = friend;
        }

        public List<GroupBean> getGroup() {
            return group;
        }

        public void setGroup(List<GroupBean> group) {
            this.group = group;
        }

        public static class MineBean {
            /**
             * username : 管理员
             * id : 100000
             * status : online
             * sign : 我是管理员
             * avatar : http://cdn.firstlinkapp.com/upload/2016_6/1465575923433_33812.jpg
             */

            private String username;
            private String id;
            private String status;
            private String sign;
            private String avatar;

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getSign() {
                return sign;
            }

            public void setSign(String sign) {
                this.sign = sign;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }
        }

        public static class FriendBean {
            /**
             * groupname : 机械师
             * id : 1
             * online : 2
             * list : [{"username":"贤心","id":"100001","avatar":"http://tp1.sinaimg.cn/1571889140/180/40030060651/1 ","sign":"这些都是测试数据，实际使用请严格按照该格式返回"},{"username":"Z_子晴","id":"108101","avatar":"http://tva3.sinaimg.cn/crop.0.0.512.512.180/8693225ajw8f2rt20ptykj20e80e8weu.jpg ","sign":"微电商达人"},{"username":"Lemon_CC","id":"102101","avatar":"http://tp2.sinaimg.cn/1833062053/180/5643591594/0","sign":""},{"username":"马小云","id":"168168","avatar":"http://tp4.sinaimg.cn/2145291155/180/5601307179/1","sign":"让天下没有难写的代码","status":"offline"},{"username":"徐小峥","id":"666666","avatar":"http://tp2.sinaimg.cn/1783286485/180/5677568891/1","sign":"代码在囧途，也要写到底"}]
             */

            private String groupname;
            private int id;
            private int online;
            private List<ListBean> list;

            public String getGroupname() {
                return groupname;
            }

            public void setGroupname(String groupname) {
                this.groupname = groupname;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getOnline() {
                return online;
            }

            public void setOnline(int online) {
                this.online = online;
            }

            public List<ListBean> getList() {
                return list;
            }

            public void setList(List<ListBean> list) {
                this.list = list;
            }

            public static class ListBean {
                /**
                 * username : 贤心
                 * id : 100001
                 * avatar : http://tp1.sinaimg.cn/1571889140/180/40030060651/1
                 * sign : 这些都是测试数据，实际使用请严格按照该格式返回
                 * status : offline
                 */

                private String username;//用户名
                private String id;//ID
                private String avatar;//用户头像
                private String sign;//个性签名
                private String status;//状态

                public String getUsername() {
                    return username;
                }

                public void setUsername(String username) {
                    this.username = username;
                }

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getAvatar() {
                    return avatar;
                }

                public void setAvatar(String avatar) {
                    this.avatar = avatar;
                }

                public String getSign() {
                    return sign;
                }

                public void setSign(String sign) {
                    this.sign = sign;
                }

                public String getStatus() {
                    return status;
                }

                public void setStatus(String status) {
                    this.status = status;
                }
            }
        }

        public static class GroupBean {
            /**
             * groupname : 前端群
             * id : 101
             * avatar : http://tp2.sinaimg.cn/2211874245/180/40050524279/0
             */

            private String groupname;//群名称
            private String id;//群ID
            private String avatar;//群头像

            public String getGroupname() {
                return groupname;
            }

            public void setGroupname(String groupname) {
                this.groupname = groupname;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }
        }
    }
}
